

var progress = $('.progress_bg');

$(function() {
	progress.addClass('loading_most'); 
	
	var timer = setInterval(function () {
		var width = $('.progress_bg').width();
		var bar = $('.progress_bar').width();
		
		var progress = ((width / bar) * 100).toFixed(0);
		if (progress > 100) {
			clearInterval(timer);
		}
		$('.progress').html(progress+'%');
	},100);
});


window.onload = function () {
	progress.addClass('loading_finish'); 
	setTimeout(function(){
		window.location.replace('room.html');
	},1500);
}
